package com.hdoit.apollo.logical.stock.dao;

import java.util.List;

import com.hdoit.apollo.logical.stock.model.Stock;
import com.hdoit.apollo.logical.stock.model.StockStat;
import com.hdoit.apollo.logical.viewmodel.stock.StockInfo;
import com.hdoit.apollo.logical.viewmodel.stock.StockSearch;
import com.tennetcn.data.dao.base.ISuperDao;
import com.tennetcn.data.message.PagerModel;
/**
 * @author      humaoshu
 * @email       
 * @createtime  2018年04月02日 11:35:13
 * @comment
 */
public interface IStockDao extends ISuperDao<Stock>{

	public Stock queryModelByKey(String cargoId);

	public StockStat getStockStat(StockSearch search);

	public Stock getStockByCargoNo(String cargoNo, String shopId);


	public Stock queryModelByCargoId(String cargoId);

	public Stock getStockByCargoId(String cargoId, String shopId);

	public Stock queryModelByStockId(String stockId);

	public List<Stock> queryListList(StockSearch search, PagerModel pagerModel);

	public int queryCountList(StockSearch search);

	public List<StockInfo> getListBysearch(StockSearch search);

	public boolean deleteByCargoId(String cargoId);

	public List<StockInfo> getSupplierStocksBysearch(StockSearch search);


}
